NevronOpenVision
Nevron.Nov Namespace / NStringParser Class / ReadTo Method / ReadTo(Char[],Char,String) Method
The chars at which to stop reading.
If this char is met, the next char will be read and included directly no matter what it is.
The string token that was read, no matter whether a stop char was met or the parser has reached its end position.
ReadTo(Char[],Char,String) Method
Reads a string from the current position (inclusive) to the first occurrence of one of the given stop chars (exclusive). The position of the first occurrence of the stop char becomes the new reading position. Returns false if the parser has reached its end position.
Syntax
protected System.bool ReadTo( 
   System.char[] stopChars,
   System.char escapeChar,
   out System.string result
)

Parameters

stopChars
The chars at which to stop reading.
escapeChar
If this char is met, the next char will be read and included directly no matter what it is.
result
The string token that was read, no matter whether a stop char was met or the parser has reached its end position.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also